package com.app.signing.widget;

import android.text.InputFilter;
import android.text.InputType;
import android.view.View;

import com.app.signing.R;

/**
 * @author wangpeifeng
 * @date 2018/05/08 16:49
 */
public class StudyTimeDialog extends SigningSettingDialog {

    public static StudyTimeDialog newInstance() {
        return new StudyTimeDialog();
    }

    @Override
    protected String createTitle() {
        return getString(R.string.study_time_setting);
    }

    @Override
    protected View buildCustomView() {
        View view = super.buildCustomView();
        editRange.setHint("以分钟为单位");
        editRange.setInputType(InputType.TYPE_CLASS_NUMBER);
        editRange.setFilters(new InputFilter[]{new InputFilter.LengthFilter(10)});
        return view;
    }
}
